<?php
/*
*	移动端文章模板
*/
?>


<div>
	
	<h2>专题列表</h2>
	<?php
		$args=array(
          'post_type' => 'special',
          'orderby'  => array('date' => 'DESC'),
          'posts_per_page' =>1000,
        );
        $i=1;
        $query = new WP_Query($args);
        while($query->have_posts()):$query->the_post();
	?>
	<dl>
		<dt><?php echo $i;?>、<a href="<?php the_permalink();?>" target="_blank"><?php the_title();?></a></dt>
		<dt><?php echo 'http://'.$_SERVER['HTTP_HOST'];the_permalink();?></dt>
	</dl>
	<?php
		$i++;
		endwhile;
		wp_reset_query();
	?>
	<h2>伪对话页</h2>
	<?php
		$args=array(
          'post_type' => 'wpages',
          'orderby'  => array('date' => 'DESC'),
          'posts_per_page' =>1000,
        );
        $i=1;
        $query = new WP_Query($args);
        while($query->have_posts()):$query->the_post();
	?>
	<dl>
		<dt><?php echo $i;?>、<a href="<?php the_permalink();?>" target="_blank"><?php the_title();?></a></dt>
		<dt><?php echo 'http://'.$_SERVER['HTTP_HOST'];the_permalink();?></dt>
	</dl>
	<?php
		$i++;
		endwhile;
		wp_reset_query();
	?>
	<h2>普通文章</h2>
	<?php
		$args=array(
          'post_type' => 'post',
          'orderby'  => array('date' => 'DESC'),
          'posts_per_page' =>1000,
        );
        $i=1;
        $query = new WP_Query($args);
        while($query->have_posts()):$query->the_post();
	?>
	<dl>
		<dt><?php echo $i;?>、<a href="<?php the_permalink();?>" target="_blank"><?php the_title();?></a></dt>
		<dt><?php echo 'http://'.$_SERVER['HTTP_HOST'];the_permalink();?></dt>
	</dl>
	<?php
		$i++;
		endwhile;
		wp_reset_query();
	?>
	<h2>项目文章</h2>
	<?php
		$args=array(
          'post_type' => 'projects',
          'orderby'  => array('date' => 'DESC'),
          'posts_per_page' =>1000,
        );
        $i=1;
        $query = new WP_Query($args);
        while($query->have_posts()):$query->the_post();
	?>
	<dl>
		<dt><?php echo $i;?>、<a href="<?php the_permalink();?>" target="_blank"><?php the_title();?></a></dt>
		<dt><?php echo 'http://'.$_SERVER['HTTP_HOST'];the_permalink();?></dt>
	</dl>
	<?php
		$i++;
		endwhile;
		wp_reset_query();
	?>
</div>